import request from '@/utils/request'

// 获取首页轮播图数据
export const getBannerList = () => {
  return request({
    url: 'banner/list'
  })
}

// 获取首页分类菜单数据
export const getMenuList = () => {
  return request({
    url: 'menu/list'
  })
}

// 分页获取商品列表数据
export const getGoodsList = ({ count = 1, limitNum = 10 }) => {
  return request({
    url: 'pro/list',
    params: {
      count,
      limitNum
    }
  })
}

export const getAllGoodsList = () => {
  return request({
    url: 'pro/list/all'
  })
}
